package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Picture;
import com.weipai.springboot.model.PictureCategory;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 17:28
 */
public interface PictureDao {
    
    //通过图片的分类获取图片
    List<Map<String,Object>> getImgByPictureCategoryId(String id);

    //图片的保存
    int savePicture(Picture picture);

    //通过图片id获取图片详情
    Picture getPictureById(Integer id);

    //图片的删除
    int batchDeleteById(Integer[] id);

    //图片的修改
    int updatePicture(Picture picture);

    //图片分类的保存
    int savePictureCategory(PictureCategory pictureCategory);

    //图片分类的修改
    int updatePictureCategory(Integer id, String categoryName);

    //获取图片分类的详情
    Map<String,Object> getPictureCategoryInfo(Integer id);

    //查看图片分类下是否关联图片
    int vertifiPicture(Integer integer);

    //图片分类的删除
    int batchDeleteByCategoryId(Integer[] id);

    //图片分类列表
    List<PictureCategory> pictureCategoryList();
}
